# Simple Git Upload Script
# Run this step by step

Write-Host "Step 1: Check Git installation" -ForegroundColor Green
git --version

Write-Host "`nStep 2: Initialize repository" -ForegroundColor Green
git init

Write-Host "`nStep 3: Configure user (if needed)" -ForegroundColor Green
Write-Host "Run these commands manually if not configured:" -ForegroundColor Yellow
Write-Host "git config --global user.name 'Your Name'" -ForegroundColor Cyan
Write-Host "git config --global user.email 'your.email@example.com'" -ForegroundColor Cyan

Write-Host "`nStep 4: Add files" -ForegroundColor Green
git add .

Write-Host "`nStep 5: Commit" -ForegroundColor Green
git commit -m "Initial commit: Spring Boot + Vue.js User Login System"

Write-Host "`nStep 6: Add remote (replace with your Gitee URL)" -ForegroundColor Green
Write-Host "git remote add origin https://gitee.com/your-username/your-repo.git" -ForegroundColor Cyan

Write-Host "`nStep 7: Push to Gitee" -ForegroundColor Green
Write-Host "git push -u origin master" -ForegroundColor Cyan
Write-Host "or" -ForegroundColor Yellow
Write-Host "git push -u origin main" -ForegroundColor Cyan

Write-Host "`nNext steps:" -ForegroundColor Yellow
Write-Host "1. Create repository on Gitee first" -ForegroundColor White
Write-Host "2. Copy the repository URL" -ForegroundColor White
Write-Host "3. Run the git remote add command with your URL" -ForegroundColor White
Write-Host "4. Run the git push command" -ForegroundColor White